{{ await Mode("TPL").Render("@"+KUO.CLASS+"/"+TPLtemp+"/head",KUO,THIS) }}
<style>
h1{ font-size: 0.36rem;}
.page{background-color: #f1f1f1;}
.wechat_page_tip {
    display: none;
    background: url('{{ pichttp("/Tpl/cms/default/weixin.png") }}') no-repeat top center rgba(0, 0, 0, .7);
    background-size:100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999
}
</style>
<section class="page-content">    
    <div class="soft-info">
        <div class="bd">
            <img class="pic" src="{{ pichttp(KUO.$DATA['photo']) }}" alt="{{ KUO.$DATA['name'] }}">
            <dl class="con">
                <dt><h1>{{ KUO.$DATA['name'] }}</h1></dt>
                {{# if(KUO.$ZDATA && KUO.$ZDATA['name']){ }}
                <dd>分类:<a href="{{KUO.$ZDATA['href']}}">{{KUO.$ZDATA['name']}}</a></dd>
                {{# } }}
                <dd>时间{{ Mode("Tools").Date('Y-m-d',KUO.$DATA['atime'])}} </dd>
                <dd>推荐<div class="star star{{ KUO.$DATA['recommend'] <= 3 ?3:KUO.$DATA['recommend'] }}"></div></dd>
            </dl>
            <div>{{ KUO.$DATA['describes']}}</div>
        </div>
        <div class="ft" id="download_url_show">
            <a class="btn btn-green and-show" onclick="goyouxi();" >立即下载</a>
        </div>
    </div>
   
    <div class="section">
        <div class="section-hd">
            <h3 class="title">{{KUO.$DATA['name']}}介绍</h3>
        </div>
        <div class="soft-remark" id="softRemarkText">
            <div class="soft-focus" id="softFocus">
                <div class="bd">
                    <ul>
                        {{#  
                            let $TUPIANJI = Mode("Tools").TIQUimg(KUO.$DATA['content']);
                            if(KUO.$DATA['photoalbum'] != ""){
                                $TUPIANJI = explode(',',KUO.$DATA['photoalbum']);
                            }
                            if($TUPIANJI){
                                for(let zhi in $TUPIANJI){
                                    let $photo = $TUPIANJI[zhi];
                                    if($photo == ""){
                                        continue ;
                                    }
                        }}
                                <li><img src="{{CDNHOST}}Tpl/noimg.png" lay-src="{{ pichttp($photo)}}" alt="{{ KUO.$DATA['name'] }}"></li>
                        {{#

                                }
                            }
                        }}               
                    </ul>
                </div>
                <div class="hd"><ul></ul></div>
            </div>
            <div class="text">
                <div class="text-inner">
                    {{#
                        if($TUPIANJI){
                            let $TI = [];
                            let $HU = [];
                        
                            for( let $ti in $TUPIANJI ){
                                let $photo = $TUPIANJI[$ti];
                                if($photo == ""){
                                    continue ;
                                }
                                $TI.push($photo);
                                $HU.push(pichttp($photo));

                            }
                    }}
                        {{ str_replace( $TI, $HU, KUO.$DATA['content']) }}
                    {{# }else{ }}
                        {{ KUO.$DATA.content }}
                    {{# } }}
                    
                </div>
                
            </div>
        </div>
    </div>
    {{#
        let $keywords = KUO.$DATA['keywords'];
        $keywords = str_replace(',,',',', Trim($keywords,','));
        let $keywordsdata = explode(',',$keywords);
        if( $keywords  != "" && $keywordsdata && count($keywordsdata) > 0){
    }}  <div class="section" style="margin-bottom:0.3rem;clear:both;">
            <div class="section-hd">
                <h3 class="title">{{KUO.$DATA['name']}}搜索</h3>
            </div>
            <div class="dcatetory hot_game">
                {{# 
                    for(let $k in $keywordsdata){
                    let $关键词 =$keywordsdata[$k];
                    if($关键词 == ""){
                        continue ;
                    }
                }}
                <a href="{{ KuoLink([ KUO.CLASS,'soso', $关键词 ]) }}">{{$关键词 }}</a>
                {{# } }}  
            </div>
        </div>
    {{#  } }}
    <div class="section" style="margin-bottom:0.3rem;clear:both;">
        <div class="section-hd">
            <h3 class="title">{{KUO.$DATA['name']}}推荐</h3>
        </div>
        <div class="soft-list">
            <ul class="list">
            {{#
            let $项目数据 = await THIS.CENTER_select({'subclass IN' : await THIS.TYPE_BAOHAN( KUO.$DATA['subclass'] ),'off':2},"RAND()",4);
          
            if( $项目数据 ){
            
                for( let $i in $项目数据){
                    let $eli = $项目数据[$i];
                    let $eliurl = KuoLink([ KUO.CLASS, $eli['url'] ]);
            }} <li class="item">

                    <a href="{{$eliurl}}">
                        <img class="pic lazy " src="{{CDNHOST}}Tpl/noimg.png" lay-src="{{ pichttp($eli['photo']) }}" alt="{{ $eli['name'] }}" >
                        <div class="tit">{{ $eli['name'] }}</div>
                    </a>
                </li>
            {{#
                    }
                }
            }}
            </ul>
        </div>
    </div>
    
    {{ await Mode("TPL").Render("@"+KUO.CLASS+"/"+TPLtemp+"/tuijian",KUO,THIS) }}
</section>
<div class="wechat_page_tip" id="wechat_page_tip" onclick="document.getElementById('wechat_page_tip').style.display='none';"></div>
<div id="tupiaxxx" onclick="$(this).hide()">
    <div style="width:100%;height:100%; display: table;text-align:center;" >
        <span style="display: table-cell; vertical-align: middle; ">
            <img  style="display: inline-block;width:100%;" />
        </span>
    </div>
</div>
{{ await Mode("TPL").Render("@"+KUO.CLASS+"/"+TPLtemp+"/foot",KUO,THIS) }}
<script type="text/javascript">
var navigator = window.navigator,userAgent = navigator.userAgent;
var wechat = userAgent.indexOf("MicroMessenger") >= 0;
var GAMEURL = "{{ KUO.$DATA.link}}";
function goyouxi(){
    if(wechat){
        document.getElementById("wechat_page_tip").style.display="block";
    }else{
        window.location.href=GAMEURL;
    }
}
seajs.use('app/common', function(fn){
    fn.init();
    fn.imgLazyLoad();
    fn.softDetail();

    $(function(){
      
       
        $("#softFocus ul li img").click(function(){
            var src = $(this).attr("src");
            IMGNUM = src;
            $("#tupiaxxx img").attr({"src":src});
            $("#tupiaxxx").show();
        });
        
        $("#tupiaxxx img").click(function(){
            var tupian =  [];
            $("#softFocus ul li img").each(function(index,cccc){
                tupian.push($(cccc).attr("src"));
            });
            var dangqian = $("#tupiaxxx img").attr("src");
            var xiayige = 0;
            for(var xx in tupian){
                if(tupian[xx] == dangqian){
                    xiayige = xx *1 +1;
                }
            }
            if(!tupian[xiayige]){
                xiayige = 0;
            }
            if(tupian[xiayige]){
                if(IMGNUM != tupian[xiayige]){
                    $("#tupiaxxx img").attr({"src":tupian[xiayige]});
                    return false;
                }
            }
        });
    });
});
</script>